from flask import Blueprint, render_template, request,jsonify

api = Blueprint('api', __name__ )

@api.route('test', methods=['POST', 'GET'])
def test():
    return jsonify(request.values)